import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";

const routes: RouteRecordRaw[] = [
  {
    path: "/",
    name: "Index",
    component: () => import("../views/Index.vue"),
    meta: {
      title: "首页",
      needLogin: true,
    },
  }
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;